package io.renren.modules.lanling.dao;

import io.renren.common.utils.Query;
import io.renren.modules.lanling.entity.QuestionRecordEntity;
import io.renren.modules.lanling.entity.SearchEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户搜索记录
 *
 * @author LANLING
 * @email lanling@gmail.com
 * @date 2018-11-26 15:50:08
 */
public interface SearchDao extends BaseMapper<SearchEntity> {
    List<SearchEntity> queryList(Query query);

    Integer queryTotal(Query query);

    void deleteByUserId(@Param("studentId") long studentId);
}
